package com.pmcc.cj.entity;

import com.pmcc.core.entity.UUIDEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 商品
 * Created by tomas on 2020/9/5.
 */
@Entity
@Table(name = "cj_commodity")
public class CjCommodity extends UUIDEntity {
    @Column(name = "name")
    private String name;//名称
    @Column(name = "product_id")
    private String productId;//商品分类id
    @Column(name = "product_name")
    private String productName;//商品分类
    @Column(name = "price")
    private Double price;//商品成本价
    @Column(name = "address")
    private String address;//商品缩略图地址
    @Column(name = "is_yun")
    private Boolean isYun;//是否在云飞防
    @Column(name = "crop")
    private String crop;//适应作物
    @Column(name = "is_meal")
    private Boolean isMeal;//是否可搭配飞防套餐
    @Column(name = "product_desc",length = 1000)
    private String productDesc;//商品介绍
    @Column(name = "product_image_desc",length = 1000)
    private String productImageDesc;//商品图文介绍
    @Column(name = "create_time")
    private Date createTime;//创建时间
    //商品状态  0：上架    1：下架
    @Column(name = "fettle")
    private Integer fettle;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Boolean getYun() {
        return isYun;
    }

    public void setYun(Boolean yun) {
        isYun = yun;
    }

    public String getCrop() {
        return crop;
    }

    public void setCrop(String crop) {
        this.crop = crop;
    }

    public Boolean getMeal() {
        return isMeal;
    }

    public void setMeal(Boolean meal) {
        isMeal = meal;
    }

    public String getProductDesc() {
        return productDesc;
    }

    public void setProductDesc(String productDesc) {
        this.productDesc = productDesc;
    }

    public String getProductImageDesc() {
        return productImageDesc;
    }

    public void setProductImageDesc(String productImageDesc) {
        this.productImageDesc = productImageDesc;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getFettle() {
        return fettle;
    }

    public void setFettle(Integer fettle) {
        this.fettle = fettle;
    }
}
